﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;

namespace AliboboStockLib.util.io.file
{
    public class FileReader
    {

        public static String readFile(String fileName)
        {
            StringBuilder sb = new StringBuilder();
            using (StreamReader sr = new StreamReader(fileName, System.Text.Encoding.Default))
            {
                String line;
                while ((line = sr.ReadLine()) != null)
                {
                    sb.Append(line);
                    sb.Append("\n");
                }
            }
            return sb.ToString();
        }
          
    }
}
